package com.dudy.authdemo.vo;

import com.dudy.common.base.PageData;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

public class PersonRoleVO extends PageData<PersonRoleVO> {
    private Long id;

    /**
     * 用户主键
     */
    private Long personId;

    /**
     * 角色主键
     */
    private String roleCode;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取用户主键
     *
     * @return person_id - 用户主键
     */
    public Long getPersonId() {
        return personId;
    }

    /**
     * 设置用户主键
     *
     * @param personId 用户主键
     */
    public void setPersonId(Long personId) {
        this.personId = personId;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public PersonRoleVO setRoleCode(String roleCode) {
        this.roleCode = roleCode;
        return this;
    }
}